Skip to content

Add mouse events listener for Widgets #2580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

AlexandreK38
Copy link
Contributor

Hi,
I wanted to add a mouse scroll listener on the UIScrollView to be able to scroll with the mouse. Basically it works, but if we have several scroll views then they will all move, even if the mouse is not over them.

To be able to have only the top widget to handle the mouse scroll and not others, we need to implement the same touches events mechanism but for mouse events. So this will work for scroll event, but also press, released, and moved.
We can also, as for touches, add a listener to our own widgets.

@AlexandreK38
Copy link
Contributor Author

I forgot about the extensions, I'll need to fix them with the new code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant